<template>
  <div>
    <c-table>
      <template slot="zuo" slot-scope="{ data }">
        <el-button @click="open(data)">查看</el-button>
      </template>
    </c-table>
    <app></app>
  </div>
</template>

<script>
import cTable from "./text.vue";
import app from "./App.vue";
export default {
  components: {
    cTable,
    app,
  },
  methods: {
    open(data) {
      console.log(data);
    },
  },
};
</script>

<style></style>
